using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Dts.Runtime.Design;
using Microsoft.SqlServer.Dts.Runtime;
using Shutterstock.Salesforce.SSISDownload_UI;

namespace Shutterstock.Salesforce.SSISDownload_UI
{
    class SFRefreshTaskUI : IDtsTaskUI
    {
        TaskHost _taskHost = null;
        IDtsConnectionService _connectionService = null;
        #region IDtsTaskUI Members

        public void Delete(System.Windows.Forms.IWin32Window parentWindow)
        {
            
        }

        public System.Windows.Forms.ContainerControl GetView()
        {
            return new SFRefreshTaskUIForm(_taskHost, _connectionService);
        }

        public void Initialize(Microsoft.SqlServer.Dts.Runtime.TaskHost taskHost, IServiceProvider serviceProvider)
        {
            this._taskHost = taskHost;
            this._connectionService = serviceProvider.GetService(typeof(IDtsConnectionService)) as IDtsConnectionService;

        }

        public void New(System.Windows.Forms.IWin32Window parentWindow)
        {
            
        }

        #endregion
    }
}
